import request from '@/config/axios'

// 自动化测试 VO
export interface infraLlmAutotestVO {
  id: number // 编号
  cnt: string // 内容
  mark: string // 描述
  delFlag: number // 删除标志
}

// 自动化测试 API
export const infraLlmAutotestApi = {
  // 查询自动化测试分页
  getinfraLlmAutotestPage: async (params: any) => {
    return await request.get({ url: `/infra/infra-llm-autotest/page`, params })
  },

  // 查询自动化测试详情
  getinfraLlmAutotest: async (id: number) => {
    return await request.get({ url: `/infra/infra-llm-autotest/get?id=` + id })
  },

  // 新增自动化测试
  createinfraLlmAutotest: async (data: infraLlmAutotestVO) => {
    return await request.post({ url: `/infra/infra-llm-autotest/create`, data })
  },

  // 修改自动化测试
  updateinfraLlmAutotest: async (data: infraLlmAutotestVO) => {
    return await request.put({ url: `/infra/infra-llm-autotest/update`, data })
  },

  // 删除自动化测试
  deleteinfraLlmAutotest: async (id: number) => {
    return await request.delete({ url: `/infra/infra-llm-autotest/delete?id=` + id })
  },

  // 导出自动化测试 Excel
  exportinfraLlmAutotest: async (params) => {
    return await request.download({ url: `/infra/infra-llm-autotest/export-excel`, params })
  }
}